package com.example.demo.service;

import com.example.demo.model.Tutorial;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TutorialRepository extends JpaRepository<Tutorial,Long> {

    List<Tutorial> findByPublished(boolean published);

    List<Tutorial> findByTitleContains(String title);
}
